package day08;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.InputStreamReader;

public class Demo04 {

	public static void main(String[] args) throws Exception {
		String file="abc/osw.txt";
		
		FileInputStream fis=new FileInputStream(file);
		BufferedInputStream bis=new BufferedInputStream(fis);
		InputStreamReader isr=new InputStreamReader(bis,"UTF-8");
		
		
		int n;
		
		
		while((n=isr.read())!=-1){
			char ch=(char)n;
			System.out.print(ch);
		}
		
		
		
	}

}
